package game

import (
	v1 "qm_system_server/server/api/v1"
	"qm_system_server/server/middleware"

	"github.com/gin-gonic/gin"
)

type QmPackageRouter struct {
}

func (s *QmPackageRouter) InitQmPackageRouter(Router *gin.RouterGroup) {
	qmPackageRouter := Router.Group("qmPackage").Use(middleware.OperationRecord())
	qmPackageRouterWithoutRecord := Router.Group("qmPackage")
	var qmPackageApi = v1.ApiGroupApp.GameApiGroup.QmPackageApi
	{
		qmPackageRouter.POST("createQmPackage", qmPackageApi.CreateQmPackage)
		qmPackageRouter.DELETE("deleteQmPackage", qmPackageApi.DeleteQmPackage)
		qmPackageRouter.PUT("updateQmPackage", qmPackageApi.UpdateQmPackage)
	}
	{
		qmPackageRouterWithoutRecord.GET("findQmPackage", qmPackageApi.FindQmPackage)
		qmPackageRouterWithoutRecord.GET("getQmPackageList", qmPackageApi.GetQmPackageList)
	}
}
